﻿using System.Windows.Forms;
using Andromeda.Forge.Common;

namespace ForgeIt.UserControls
{
    public partial class DeclarativeTypeUserControl : UserControl
    {
        public DeclarativeTypeUserControl()
        {
            InitializeComponent();
        }

        public FODeclarativeType Record
        {
            get;
            set;
        }

        public void DataBind(FODeclarativeType record)
        {
            SuspendLayout();

            fODeclarativeTypeBindingSource.DataSource = record;
            Record = record;

            ResumeLayout();
        }
    }
}
